import { createRouter,createWebHashHistory } from "vue-router";

const routes = [
    {
        path: '/',
        children:[
            {
                path: '/home',
                name: 'home',
                component: () => import('../views/Layout/home/index.vue')
            },
            {
                path: '/articleCheck',
                name: 'articleCheck',
                component: () => import('../views/Layout/articleView/index.vue')
            },
            {
                path: '/callerCheck',
                name: 'callerCheck',
                component: () => import('../views/Layout/callerView/index.vue')
            },
            {
                path: '/TipCheck',
                name: 'TipCheck',
                component: () => import('../views/Layout/TipView/index.vue')
            },
            {
                path: '/usersCheck',
                name: 'usersCheck',
                component: () => import('../views/Layout/usersView/index.vue')
            },
 
        ],
        component: () => import('../views/Layout/components/index.vue')
    },
    {
        path: '/',
        name: 'login',
        component: ()=>import('../views/loginView/index.vue')
    }

]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router